<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>新增为什么选择易彩通</title>
<script type='text/javascript' src='js/jquery-1.4.2.min.js'></script>
<script type='text/javascript' src='js/jquery.validate.min.js'></script>
<script type='text/javascript' src='js/common.js'></script>
<link href="manage/manage.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function backCom()
{
	 document.location.href="comment!listWhyChooes.action";
}

function checkValid(){
    var title=$.trim($("#ctitle").val());    //发送者
	var content = $.trim($("#neirong").val());  //标题

	if(title==""){  
		$("#titleSpan").html("请输入标题");
		$("#ctitle").focus();
		return false;
	}
   if(content==""){  
		$("#titleSpan").html("");
		$("#conentSpan").html("请输入内容");
		$("#neirong").focus();
		return false;
	}
	
$("#addWhyChooesForm").submit();
}

</script>

</head>
<body style="margin:0px; text-align:center;font-size:12px;" bgcolor="#F1F1F1" >
<div id="top">
 	<!-- 头部-->
 	<%@include file="mainTop.jsp"%>
</div>
<div id="top2"></div>

<!-- 中间-->
<div id="main1">
<!-- 左边-->
 <%@include file="mainLeft.jsp"%>
 <div class="mainr2">
 </div>
<!-- 中间右边内容 -->
<s:form action="comment!addWhyChooes.action" name="addWhyChooesForm" id="addWhyChooesForm">
<table  height="377" border="0" bgcolor="#FFFFFF" style="font-size:12px;">
  <tr>
    <td height="21" align="left" valign="top""><img src="images/dian.jpg" width="18" height="15"><span class="STYLE3">新增为什么选择易彩通</span></td>
    <td ></td>
    <td align="right" valign="top" ><img src="images/sp_bg.jpg" width="18" height="16"><a href="comment!listWhyChooes.action">返回为什么选择易彩通列表</a></td>
  </tr>
   <tr>
    <td height="30" colspan="3" align="left">标题：<input name="ctitle" id="ctitle" style="background: #CCCCCC"/><span style="color:red">*</span><span style="color:red"  id="titleSpan"></span></td>
    </tr>
  <tr>
    <td height="278" colspan="3" align="left">内容：<textarea style="background: #CCCCCC;" name="neirong" cols="80" rows="20" id="neirong"></textarea><span style="color:red">*</span></td>
    </tr>
     <tr>
      <td height="15" colspan="3" align="left"><span style="color:red" id="conentSpan"></span></td>
   </tr>
   <tr>
    <td height="38" colspan="3" align="center"><input type="button"  value=" 新 增 " onClick="checkValid();">&nbsp;&nbsp;
      <input type="button"  value=" 取 消 " onClick="backCom();"></td>
    </tr>
</table>
</s:form>
</div>
</body>
</html>
